import request from '/@/utils/request';

export function usersApi() {
  return {
    dataList : (params : object) =>{
      return request({
				url: '/admin/users/data',
				method: 'post',
				data: params,
			})
    },
    delete : (params : object) =>{
      return request({
        url:'/admin/users/delete',
        method:'post',
        data:params
      })
    },
    save:(params:object) => {
      return request({
        url:'/admin/users/save',
        method:'post',
        data:params
      })
    },
    detail:(params) => {
      return request({
        url:'/admin/users/detail',
        method:'post',
        data:params
      })
    },

    disenabled:(params) => {
      return request({
        url:'/admin/users/disenabled',
        method:'post',
        data:params
      })
    },
  }
}